package leesoft.tibmigrator;

import java.sql.Connection;
import java.sql.DriverManager;

public class DBDetector {
	public boolean detecting(String connStr,String driverName,String username,String password){
		try{
			Class.forName(driverName);
			Connection dbConn;
			dbConn=DriverManager.getConnection(connStr,"sa","ilovesun");
			dbConn.close();
			return true;
		}catch(Exception e){
			e.printStackTrace();
			return false;
		}
	}
}
